package com.fjh.feign;

import com.fjh.domain.Prod;
import com.fjh.feign.hystrix.IndexImgProdFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "product-service",fallback = IndexImgProdFeignHystrix.class)
public interface IndexImgProdFeign {

    @GetMapping("prod/prod/findProdById")
    Prod  findProdById(@RequestParam Long prodId);
}
